/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

/*
 * laser_entradas_catalogo.java
 *
 * Created on 24/10/2011, 02:00:01 PM
 */

package sie_invdis;



import java.sql.*;
import javax.swing.*;

import javax.swing.JOptionPane;
import javax.swing.JTable;
import javax.swing.JTable.*;
import java.awt.*;
import java.util.Date;
import java.util.Calendar;
import java.text.SimpleDateFormat;
import java.text.ParseException;
import java.text.*;

/**
 *
 * @author Michelle
 */
public class laser_entradas_catalogo extends javax.swing.JFrame {

private javax.swing.table.DefaultTableModel jtable_modelo_diarioproduccion;
private javax.swing.table.DefaultTableModel jtable_modelo_produccionxdia;
private javax.swing.table.DefaultTableModel jtable_modelo_insumospatrones;
private javax.swing.table.DefaultTableModel jtable_modelo_inspat_historial;
private javax.swing.table.DefaultTableModel jtable_modelo_requisicioncata;

private int patbuscamp=1;


    private int control_enter=0,controlcombo=0,indexactual=0,yacarguecatalogo=0,yacargueproxdia=0,yacarguecatinsu=0,yacarguecatrequi=0;
    private SimpleDateFormat formateador = new SimpleDateFormat("dd-MM-yyyy");
    private SimpleDateFormat formateadoresta = new SimpleDateFormat("yyyy-MM-dd");
    //se crea intancia de la clase conexion
       bd_conexion x = new bd_conexion() ;
       //se creaa la variable resultset
       ResultSet rs = null;
       //llamo almetodo para establecer la conexion



    /** Creates new form laser_entradas_catalogo */
    public laser_entradas_catalogo() {
        this.iniciar_modelo_de_tabla();
        this.iniciar_modelo_produccionxdia();
        this.iniciar_modelo_insumospatrones();
        this.iniciar_modelo_patroneshistorial();
        this.iniciar_modelo_requisicioncatalogo();
        initComponents();

    jt_catalogo_laserproduccion.getColumnModel().getColumn(0).setPreferredWidth(50);//status
    jt_catalogo_laserproduccion.getColumnModel().getColumn(1).setPreferredWidth(30);//Folio
    jt_catalogo_laserproduccion.getColumnModel().getColumn(2).setPreferredWidth(50);//status
    jt_catalogo_laserproduccion.getColumnModel().getColumn(3).setPreferredWidth(35);//doc ant.
    jt_catalogo_laserproduccion.getColumnModel().getColumn(4).setPreferredWidth(55);//fecha
    jt_catalogo_laserproduccion.getColumnModel().getColumn(5).setPreferredWidth(55);//fecha llega tienda
    jt_catalogo_laserproduccion.getColumnModel().getColumn(6).setPreferredWidth(30);//f.recepcion
    jt_catalogo_laserproduccion.getColumnModel().getColumn(7).setPreferredWidth(80);//Dias Trans.
    jt_catalogo_laserproduccion.getColumnModel().getColumn(8).setPreferredWidth(30);//Cliente
    jt_catalogo_laserproduccion.getColumnModel().getColumn(9).setPreferredWidth(30);//piezas
    jt_catalogo_laserproduccion.getColumnModel().getColumn(10).setPreferredWidth(30);//Observaciones
    jt_catalogo_laserproduccion.getColumnModel().getColumn(11).setPreferredWidth(80);//Observaciones

    jt_catalogo_insumospatrones.getColumnModel().getColumn(0).setPreferredWidth(50);//status
    jt_catalogo_insumospatrones.getColumnModel().getColumn(1).setPreferredWidth(50);//tipo elemento
    jt_catalogo_insumospatrones.getColumnModel().getColumn(2).setPreferredWidth(70);//clave
    jt_catalogo_insumospatrones.getColumnModel().getColumn(3).setPreferredWidth(120);//descripcion
    jt_catalogo_insumospatrones.getColumnModel().getColumn(4).setPreferredWidth(95);//item
    jt_catalogo_insumospatrones.getColumnModel().getColumn(5).setPreferredWidth(30);//precio
    jt_catalogo_insumospatrones.getColumnModel().getColumn(6).setPreferredWidth(30);//precio
    jt_catalogo_insumospatrones.getColumnModel().getColumn(7).setPreferredWidth(25);//precio
    jt_catalogo_insumospatrones.getColumnModel().getColumn(8).setPreferredWidth(45);//precio
    jt_catalogo_insumospatrones.getColumnModel().getColumn(9).setPreferredWidth(60);//F.Ult. compra
    jt_catalogo_insumospatrones.getColumnModel().getColumn(10).setPreferredWidth(60);//observaciones

    jt_catalogo_insumospathisto.getColumnModel().getColumn(0).setPreferredWidth(60);//status
    jt_catalogo_insumospathisto.getColumnModel().getColumn(1).setPreferredWidth(30);//tipo elemento
    jt_catalogo_insumospathisto.getColumnModel().getColumn(2).setPreferredWidth(60);//clave
    jt_catalogo_insumospathisto.getColumnModel().getColumn(3).setPreferredWidth(50);//descripcion
    jt_catalogo_insumospathisto.getColumnModel().getColumn(4).setPreferredWidth(60);//item
    jt_catalogo_insumospathisto.getColumnModel().getColumn(5).setPreferredWidth(25);//precio
    jt_catalogo_insumospathisto.getColumnModel().getColumn(6).setPreferredWidth(45);//precio
    jt_catalogo_insumospathisto.getColumnModel().getColumn(7).setPreferredWidth(120);//precio

        yacarguecatalogo=1;
        this.carga_datos(0, "");
        this.buttonGroup1.setSelected(jrbtn_patidinsumo.getModel(), true);
    }

private void iniciar_modelo_de_tabla()
    {

        jtable_modelo_diarioproduccion=new javax.swing.table.DefaultTableModel();//Creo el modelo
        jtable_modelo_diarioproduccion.addColumn("<html><b>Tipo Maq.</b></html>");
        jtable_modelo_diarioproduccion.addColumn("<html><b>Folio</b></html>");
        jtable_modelo_diarioproduccion.addColumn("<html><b>Status</b></html>");
        jtable_modelo_diarioproduccion.addColumn("<html><b>Doc. Ant.</b></html>");
        jtable_modelo_diarioproduccion.addColumn("<html><b>Fecha</b></html>");
        jtable_modelo_diarioproduccion.addColumn("<html><b>F.entrega</b></html>");
        jtable_modelo_diarioproduccion.addColumn("<html><b>Operador</b></html>");
        jtable_modelo_diarioproduccion.addColumn("<html><b>Cliente</b></html>");
        jtable_modelo_diarioproduccion.addColumn("<html><b>minutos</b></html>");
        jtable_modelo_diarioproduccion.addColumn("<html><b>Piezas</b></html>");
        jtable_modelo_diarioproduccion.addColumn("<html><b>Importe</b></html>");
        jtable_modelo_diarioproduccion.addColumn("<html><b>Observaciones</b></html>");
        


   }
private void iniciar_modelo_produccionxdia()
    {

        jtable_modelo_produccionxdia=new javax.swing.table.DefaultTableModel();//Creo el modelo
        jtable_modelo_produccionxdia.addColumn("<html><b>Tipo Maq.</b></html>");
        jtable_modelo_produccionxdia.addColumn("<html><b>fecha</b></html>");
        jtable_modelo_produccionxdia.addColumn("<html><b>Minutos</b></html>");
        jtable_modelo_produccionxdia.addColumn("<html><b>Piezas</b></html>");
        jtable_modelo_produccionxdia.addColumn("<html><b>Importe Costo</b></html>");
        jtable_modelo_produccionxdia.addColumn("<html><b>Tiempo</b></html>");

   }
 private void iniciar_modelo_insumospatrones()
    {
        jtable_modelo_insumospatrones=new javax.swing.table.DefaultTableModel();//Creo el modelo
        jtable_modelo_insumospatrones.addColumn("<html><b>Status</b></html>");
        jtable_modelo_insumospatrones.addColumn("<html><b>Tipo Elemento</b></html>");
        jtable_modelo_insumospatrones.addColumn("<html><b>Clave</b></html>");
        jtable_modelo_insumospatrones.addColumn("<html><b>Descripcion.</b></html>");
        jtable_modelo_insumospatrones.addColumn("<html><b>Item.</b></html>");
        jtable_modelo_insumospatrones.addColumn("<html><b>Un</b></html>");
        jtable_modelo_insumospatrones.addColumn("<html><b>Ancho</b></html>");
        jtable_modelo_insumospatrones.addColumn("<html><b>Alto</b></html>");
        jtable_modelo_insumospatrones.addColumn("<html><b>Costo x Pza</b></html>");
        jtable_modelo_insumospatrones.addColumn("<html><b>Tiempo x Pza</b></html>");
        jtable_modelo_insumospatrones.addColumn("<html><b>F.Ult.Prod.</b></html>");
        jtable_modelo_insumospatrones.addColumn("<html><b>Acum. Produccion.</b></html>");
        jtable_modelo_insumospatrones.addColumn("<html><b>Observaciones</b></html>");


    }
private void iniciar_modelo_patroneshistorial()
    {
        jtable_modelo_inspat_historial=new javax.swing.table.DefaultTableModel();//Creo el modelo
        jtable_modelo_inspat_historial.addColumn("<html><b>Fecha</b></html>");
        jtable_modelo_inspat_historial.addColumn("<html><b>Folio</b></html>");
        jtable_modelo_inspat_historial.addColumn("<html><b>Tipo</b></html>");
        jtable_modelo_inspat_historial.addColumn("<html><b>Piesas</b></html>");
        jtable_modelo_inspat_historial.addColumn("<html><b>Patron</b></html>");
        jtable_modelo_inspat_historial.addColumn("<html><b>Costo</b></html>");
        jtable_modelo_inspat_historial.addColumn("<html><b>Imp.Costo</b></html>");
        jtable_modelo_inspat_historial.addColumn("<html><b>Observaciones</b></html>");
   }

private void iniciar_modelo_requisicioncatalogo()
    {
        jtable_modelo_requisicioncata=new javax.swing.table.DefaultTableModel();//Creo el modelo
        jtable_modelo_requisicioncata.addColumn("<html><b>Tipo Maq.</b></html>");
        jtable_modelo_requisicioncata.addColumn("<html><b>Folio</b></html>");
        jtable_modelo_requisicioncata.addColumn("<html><b>Status</b></html>");
        jtable_modelo_requisicioncata.addColumn("<html><b>Doc. Ant.</b></html>");
        jtable_modelo_requisicioncata.addColumn("<html><b>Fecha</b></html>");
        jtable_modelo_requisicioncata.addColumn("<html><b>F.entrega</b></html>");
        jtable_modelo_requisicioncata.addColumn("<html><b>Dias Trans.</b></html>");
        jtable_modelo_requisicioncata.addColumn("<html><b>Cliente</b></html>");
        jtable_modelo_requisicioncata.addColumn("<html><b>Piezas</b></html>");
        jtable_modelo_requisicioncata.addColumn("<html><b>Importe</b></html>");
        jtable_modelo_requisicioncata.addColumn("<html><b>Observaciones</b></html>");
   }

 private void carga_datos(int opbus,String tbusca)
    {
      String fechacat = "",fechallegatienda="",fechaentrega="";
      DecimalFormat miformat = new DecimalFormat("###,###,###,###");
      while(jtable_modelo_diarioproduccion.getRowCount()>0)jtable_modelo_diarioproduccion.removeRow(0);
      Object[] fnewRow = new Object[12];
       //invoco al metodo que trae el recordset de datos
        try
         {
            rs = x.sieuno_executediversosv2("select * from x1distribucion_laser_artic_insumosentrada_doctos_cat("+opbus+",'"+tbusca+"') as (id integer,iddocumento character varying(12),idstatus smallint,idclavepersonal integer,doctoanterior character varying(12),doctosiguiente character varying(12),fechadocto date,fechaentrega date,fechavence date,impuestoporcen numeric,impuestoporcen2 numeric,descuentototal numeric,desfinanciero numeric,idcliente character varying(12),obserdocto character varying(80),usuario character varying(20),idtipomaquila smallint,idalmacen smallint,hora time,statusdescrip text,nombrecliente character varying(80),direccionclie character varying(50),describemaquila text,cantidad numeric,importecosto numeric,piezasproducidad numeric,personalnombre text);",variables_global.getconexiongral());
            while (rs.next())
                {
                 fnewRow[0]=rs.getString ("describemaquila");
                 fnewRow[1]=rs.getString ("iddocumento");
                 fnewRow[2]=rs.getString ("idstatus")+":"+rs.getString ("statusdescrip");
                 fnewRow[3]=rs.getString ("doctoanterior");
                 fnewRow[4]="<html>"+this.fechaeuropea(rs.getString ("fechadocto"))+":<br>"+DiaSemana(this.fechaeuropea(rs.getString ("fechadocto")))+" "+rs.getString ("hora").substring(0, 5)+"</html>";
                 if(rs.getString("fechaentrega") != null)
                        {
                           fechallegatienda="<html>"+ rs.getString("fechaentrega")+":<br>"+DiaSemana(rs.getString ("fechaentrega"))+"</html>";
                        }
                 //fnewRow[5]=fechallegatienda;
                 fnewRow[5]="";
                 fnewRow[6]=rs.getString("idclavepersonal")+":"+rs.getString ("personalnombre");
                 fnewRow[7]=rs.getString ("nombrecliente");
                 fnewRow[8]=miformat.format(rs.getFloat("cantidad"));
                 fnewRow[9]=miformat.format(rs.getFloat("piezasproducidad"));
                 fnewRow[10]=miformat.format(rs.getFloat("importecosto"));
                 fnewRow[11]=rs.getString ("obserdocto");
                 jtable_modelo_diarioproduccion.addRow(fnewRow);
                }
        }
        catch(Exception e)
        {
            System.out.println(e.getMessage());

        }
        //this.registrosobtenidos();
       int numerofilas=this.jtable_modelo_diarioproduccion.getRowCount();
             for(int i = 0 ;i < numerofilas; i++)
                {
                     jt_catalogo_laserproduccion.setRowHeight(i, 30);
                }

      }
private void carga_datos_produccionxdia(int opbus,String tbusca)
    {
      String fechacat = "",fechallegatienda="",fechaentrega="";
      DecimalFormat miformat = new DecimalFormat("###,###,###,###");
      float vpiezas=0,vcantidad=0,vimportecosto=0;
      while(jtable_modelo_produccionxdia.getRowCount()>0)jtable_modelo_produccionxdia.removeRow(0);
      Object[] fnewRow = new Object[12];
       //invoco al metodo que trae el recordset de datos
        try
         {
            rs = x.sieuno_executediversosv2("select * from x1distribucion_laser_artic_insumosentrada_doctos_xdia("+opbus+",'"+tbusca+"') as (fecha date,idtipo smallint,describemaquila text,cantidad numeric,importecosto numeric, piezas numeric,diastrans integer);",variables_global.getconexiongral());
            while (rs.next())
                {
                 fnewRow[0]=rs.getString ("idtipo")+":"+rs.getString ("describemaquila");
                 fnewRow[1]="<html>"+this.fechaeuropea(rs.getString ("fecha"))+":"+DiaSemana(this.fechaeuropea(rs.getString ("fecha")))+"</html>";
                 vpiezas+=rs.getFloat("piezas");
                 vcantidad+=rs.getFloat("cantidad");
                 vimportecosto+=rs.getFloat("importecosto");
                 fnewRow[2]=miformat.format(rs.getFloat("cantidad"));
                 fnewRow[3]=miformat.format(rs.getFloat("piezas"));
                 fnewRow[4]=miformat.format(rs.getFloat("importecosto"));
                 fnewRow[5]=this.mensajetiempo(rs.getInt("diastrans"));
                 jtable_modelo_produccionxdia.addRow(fnewRow);

                }
        }
        catch(Exception e)
        {
            System.out.println(e.getMessage());

        }
        //this.registrosobtenidos();
      this.jtf_piezas.setText(miformat.format(vpiezas));
      this.jtf_minutos.setText(miformat.format(vcantidad)+" ("+miformat.format(vcantidad/60)+" Hrs)");
      this.jtf_importecosto.setText(miformat.format(vimportecosto));


      }

private void carga_datos_catinsumospatrones(int opcion, int opbuscamp,String busqueda)
 {
        String textohtml="";
        textohtml="<tr><th>Clave Articulo/Descripcion/foto</th><th>Clave Articulo/Descripcion/foto</th><th>Clave Articulo/Descripcion/foto</th><th>Clave Articulo/Descripcion/foto</th></tr>";
        int fila=0;
        DecimalFormat miformat = new DecimalFormat("###,###,###,###");
        DecimalFormat miformatde = new DecimalFormat("###,###,###,###.###");
       while(jtable_modelo_insumospatrones.getRowCount()>0)jtable_modelo_insumospatrones.removeRow(0);
       Object[] fnewRow = new Object[13];
       float tiempoxpieza=0,tiempo=0;
       String texto="select * from x1distribucion_laser_artic_insumos_cat("+opcion+","+opbuscamp+",'"+busqueda.toUpperCase().trim()+"') as (idinsumo character varying(16),codigobarra character varying(16), idstatus smallint,describinsumo character varying(80),itemproveedor character varying(16),unidadsal character varying(3),unidadent character varying(3),factor numeric,unidadempake character varying(12),tipoelemento smallint,familiainsumo smallint,lineainsumo smallint,controlalmacen character varying(20),stockminimo numeric,stockmaximo numeric,precio numeric,precio2 numeric,ultimocosto numeric,costoprom numeric,fechaultcom date, fechaultventa date,idprovee character varying(16),impuesto numeric,impuesto2 numeric,usuario character varying(20),valorx character varying(20),obserinsumo text,describestatus text,describetipo text,describefamilia text,describelinea text)",textotiempo="";
       rs = x.sieuno_executediversosv2(texto,variables_global.getconexiongral());
       System.out.println(texto);
       try
        {
            while (rs.next())
                {
                    fnewRow[0]=rs.getString ("describestatus");
                    fnewRow[1]=rs.getString ("describetipo");
                    fnewRow[2]=rs.getString ("idinsumo");
                    fnewRow[3]=rs.getString ("describinsumo");
                    fnewRow[4]=rs.getString ("itemproveedor");
                    fnewRow[5]=rs.getString ("unidadsal");
                    fnewRow[6]=miformatde.format(rs.getFloat("stockminimo"));
                    fnewRow[7]=miformatde.format(rs.getFloat("stockmaximo"));
                    fnewRow[8]=miformatde.format(rs.getFloat("precio"));
                
                    tiempoxpieza=rs.getFloat("factor")*60;
                    if (tiempoxpieza>59)
                        {
                            tiempo=tiempoxpieza/60;
                            textotiempo=" MIN.";
                        }
                    else
                        {
                            tiempo=tiempoxpieza;
                            textotiempo=" SEG.";
                        }
                    
                    fnewRow[9]=miformat.format(tiempo)+textotiempo;
                    fnewRow[10]="";
                    fnewRow[11]="";
                    fnewRow[12]=rs.getString ("obserinsumo");
                    jtable_modelo_insumospatrones.addRow(fnewRow);
                    if (fila<=0)
    					{
            					textohtml+= "<tr>";
        				}
					fila++;
                    textohtml+="<th>"+rs.getString("idinsumo")+"<br>"+rs.getString("describinsumo") +"<br>"+"<img src=\"http://"+variables_global.getHost()+"/javaweb/laser/patrones/"+rs.getString("idinsumo")+".JPG\" width=230 height=190 border=0 alt=\"Foto Articulo\" />"+"</th>";
                    if (fila>=4)
                        {
                            textohtml+= "</tr>";
                            fila=0;
                        }
                }

        }
        catch(Exception e)
        {
            System.out.println(e.getMessage());
        }
      this.jepn_fotos.setText("<html><head></head><body><table>"+textohtml+"</table></body></html>");
      this.jtf_regfind.setText(String.valueOf(jtable_modelo_insumospatrones.getRowCount()));
      this.jlbl_textobusca.setText("Busqueda:"+busqueda);
 }

private void carga_datos_catinsumospatroneshis(int opcion, String busqueda)
 {
        DecimalFormat miformat = new DecimalFormat("###,###,###,###");
        DecimalFormat miformatde = new DecimalFormat("###,###,###,###.###");
       while(jtable_modelo_inspat_historial.getRowCount()>0)jtable_modelo_inspat_historial.removeRow(0);
       Object[] fnewRow = new Object[8];
       float tiempoxpieza=0,tiempo=0;
       String texto="select * from x1distribucion_laser_artic_insumosentrada_doctos_detalle_import("+opcion+",'"+busqueda.toUpperCase().trim()+"') as (idreg integer,iddocto character varying(12),idarti character varying(16),cantidad numeric,factor numeric,cant_articulosal numeric,costo numeric,costoxpieza numeric,descuento1 numeric,descuento2 numeric,impuesto1 numeric,impuesto2 numeric,politicadesc smallint,tipocambio numeric,obserpartida character varying(60),piezasproduci numeric,importecosto numeric,describeinsumo character varying(80),unidadent character varying(3),stock_minimo numeric,stockmaximo numeric,idstatusdocume smallint,fechadocto date,idcliente character varying(12),idtipomaquila smallint,obserdocto character varying(80),describemaquila text)",textotiempo="";
       rs = x.sieuno_executediversosv2(texto,variables_global.getconexiongral());
       System.out.println(texto);
       try
        {
            while (rs.next())
                {
                    fnewRow[0]=this.fechaeuropea(rs.getString ("fechadocto"));
                    fnewRow[1]=rs.getString ("iddocto");
                    fnewRow[2]=rs.getString ("describemaquila");
                    fnewRow[3]=rs.getString ("piezasproduci");
                    fnewRow[4]=rs.getString ("idarti");
                    fnewRow[5]=miformatde.format(rs.getFloat("costoxpieza"));
                    fnewRow[6]=miformatde.format(rs.getFloat("costoxpieza")*rs.getFloat("piezasproduci"));
                    //fnewRow[3]=rs.getString ("describinsumo");
                    fnewRow[7]=rs.getString ("obserdocto");
                    //fnewRow[5]=rs.getString ("unidadsal");
                    //fnewRow[6]=miformatde.format((rs.getFloat("precio")/60)*(rs.getFloat("factor")*60));
                    //fnewRow[7]=rs.getString ("fechaultcom");
                    //fnewRow[8]=rs.getString ("idprovee");
                    //tiempoxpieza=rs.getFloat("factor")*60;
                    //if (tiempoxpieza>59)
                    //    {
                    //        tiempo=tiempoxpieza/60;
                    //        textotiempo=" MIN.";
                    //    }
                    //else
                    //    {
                    //        tiempo=tiempoxpieza;
                    //        textotiempo=" SEG.";
                    //    }
                    //fnewRow[7]=miformat.format(tiempo)+textotiempo;
                    //fnewRow[8]="";
                    //fnewRow[9]=rs.getString ("obserinsumo");
                    jtable_modelo_inspat_historial.addRow(fnewRow);
                }

        }
        catch(Exception e)
        {
            System.out.println(e.getMessage());
        }

 }

private void carga_datos_catrequisiciones(int opbus,String tbusca)
    {
      String fechacat = "",fechallegatienda="",fechaentrega="";
      DecimalFormat miformat = new DecimalFormat("###,###,###,###");
      while(jtable_modelo_requisicioncata.getRowCount()>0)jtable_modelo_requisicioncata.removeRow(0);
      Object[] fnewRow = new Object[11];

      String texto="select * from x1distribucion_laser_requisicion_doctos_cat("+opbus+",'"+tbusca+"') as (id integer,idstatus smallint,idclavepersonal integer,fechadocto date,fechaentrega date,fechavence date,idcliente character varying(12),obserdocto text,idtipomaquila smallint,hora time,nombrecliente character varying(80),describemaquila text,cantidad numeric,importecosto numeric,describestatus text);";
      System.out.println(texto);
       //invoco al metodo que trae el recordset de datos
        try
         {
            rs = x.sieuno_executediversosv2(texto,variables_global.getconexiongral());
            while (rs.next())
                {
                 fnewRow[0]=rs.getString ("describemaquila");
                 fnewRow[1]=rs.getString ("id");
                 fnewRow[2]=rs.getString ("idstatus")+":"+rs.getString("describestatus");
                 fnewRow[3]="<html>"+this.fechaeuropea(rs.getString ("fechadocto"))+":<br>"+DiaSemana(this.fechaeuropea(rs.getString ("fechadocto")))+" "+rs.getString ("hora").substring(0, 5)+"</html>";
                 if(rs.getString("fechaentrega") != null)
                        {
                           fechallegatienda="<html>"+ rs.getString("fechaentrega")+":<br>"+DiaSemana(rs.getString ("fechaentrega"))+"</html>";
                        }
                 //fnewRow[5]=fechallegatienda;
                 fnewRow[4]="";
                 fnewRow[5]="";
                 fnewRow[6]="";
                 fnewRow[7]=rs.getString ("idcliente")+":"+rs.getString ("nombrecliente");
                 fnewRow[8]=miformat.format(rs.getFloat("cantidad"));
                 fnewRow[9]=miformat.format(rs.getFloat("importecosto"));
                 fnewRow[10]=rs.getString ("obserdocto");
                 jtable_modelo_requisicioncata.addRow(fnewRow);
                }
        }
        catch(Exception e)
        {
            System.out.println(e.getMessage());

        }
        //this.registrosobtenidos();
       int numerofilas=this.jt_catalogo_laserrequisicion.getRowCount();
             for(int i = 0 ;i < numerofilas; i++)
                {
                     jt_catalogo_laserrequisicion.setRowHeight(i, 30);
                }

      }

private String  fechaeuropea(String fecha) {

         //resibe cadena de fecha en formato americano yyyy-MM-dd
        java.util.Date fechaestaeuropa=null;
       SimpleDateFormat formateadorestaeuropa = new SimpleDateFormat("dd-MM-yyyy");
       String cadenafecha="";
        try
         {
          fechaestaeuropa = formateadoresta.parse(fecha);
         }
        catch (ParseException e)
          {
             //Error, la cadena de texto no se puede convertir en fecha.
          }
       cadenafecha= formateadorestaeuropa.format(fechaestaeuropa);
       return cadenafecha;

    }
private String DiaSemana(String fe) {
         String dia = "";
       java.util.Date fecha=null;
         try
            {
             fecha = formateador.parse(fe);

           }
        catch (ParseException e)
            {
            //Error, la cadena de texto no se puede convertir en fecha.
            }
        Calendar cal= Calendar.getInstance();
        cal.setTime(fecha);
        //ojo para establecer o recetear cada parte de la fecha por separado
        //cal.set(Calendar.YEAR, fecha.getYear());
        //cal.set(Calendar.MONTH, fecha.getMonth());
        //cal.set(Calendar.DAY_OF_MONTH, fecha.getDay());
        int diaInt = cal.get(Calendar.DAY_OF_WEEK);
        switch (diaInt) {
            case 1:
                dia = "Domingo";
                break;
            case 2:
                dia = "Lunes";
                break;
            case 3:
                dia = "Martes";
                break;
            case 4:
                dia = "Miercoles";
                break;
            case 5:
                dia = "Jueves";
                break;
            case 6:
                dia = "Viernes";
                break;
            case 7:
                dia = "Sabado";
                break;

        }
        return dia;
    }
private String mensajetiempo(int nd) {
     String mensaje="";
     if (nd==0)
				{
					mensaje="<html><b>Hoy</b></html>";
				}
		if (nd==1)
				{
					mensaje="<html><b>ayer</b></html>";
				}
		if (nd>1)
				{
					mensaje=" Hace " + nd + " Dias " ;
				}
 	return mensaje;
 }
private void dioclick(java.awt.event.MouseEvent evt) {
        // TODO add your handling code here:
        System.out.println("dio doble  click");
        int fila = jt_catalogo_laserproduccion.getSelectedRow();
        
        laser_entradas_detalle fled=new laser_entradas_detalle(jt_catalogo_laserproduccion.getValueAt(fila, 1).toString());
        fled.pack();
        fled.setVisible(true);
    }
private void dioclickpat(java.awt.event.MouseEvent evt) {
        // TODO add your handling code here:
        System.out.println("dio doble  click");
        int fila = jt_catalogo_insumospatrones.getSelectedRow();
        String idcadena=this.jt_catalogo_insumospatrones.getValueAt(fila, 2).toString();
        

 
            laser_entradas_catalogo_patrones_detalle flecpd=new laser_entradas_catalogo_patrones_detalle(1,idcadena,jt_catalogo_insumospatrones.getValueAt(fila, 3).toString());
            flecpd.pack();
            flecpd.setVisible(true);
 

    }

private void dioclickrequi(java.awt.event.MouseEvent evt) {
        // TODO add your handling code here:
        System.out.println("dio doble  click");
        int fila = jt_catalogo_laserrequisicion.getSelectedRow();

        laser_requisicion_detalle flrd=new laser_requisicion_detalle(jt_catalogo_laserrequisicion.getValueAt(fila, 1).toString());
        flrd.pack();
        flrd.setVisible(true);
    }
private void calcularusumaterial()
        {
            float piezasxfila=0,totfilas=0,alturausada=0,filaajuste=0,filasneceenteras=0;
            String piezasxfilas[]=null,totfilass[]=null,alturausadas[]=null,puentedetexto="",puentefnece="";
            DecimalFormat miformat = new DecimalFormat("############.##");
            DecimalFormat miformatent = new DecimalFormat("############.##");
            DecimalFormat miformatuso = new DecimalFormat("############.####");

            piezasxfila=Float.parseFloat(this.jtf_anchomaterial.getText())/Float.parseFloat(this.jtf_anchopieza.getText());
            //this.jtf_piezasxfila.setText(miformat.format(piezasxfila).replace(".", ":"));
            puentedetexto=miformat.format(piezasxfila).replace(".", ":").replace(",", ":");
            piezasxfilas=puentedetexto.split(":");
            System.out.println(piezasxfilas[0]);
            this.jtf_piezasxfila.setText(miformatent.format(Float.parseFloat(piezasxfilas[0])));

            totfilas=Float.parseFloat(this.jtf_canpzaingresa.getText())/Float.parseFloat(piezasxfilas[0]);
            //this.jtf_filasnecesarias.setText(miformat.format(totfilas).replace(".", ":"));
            puentefnece=miformat.format(totfilas).replace(".", ":").replace(",", ":");
            totfilass=puentefnece.split(":");
            filasneceenteras=Float.parseFloat(totfilass[0]);
            if (totfilas>filasneceenteras)
                    {
                        filaajuste=1;
                    }
            puentefnece=miformat.format(Float.parseFloat(totfilass[0])+filaajuste);
            this.jtf_filasnecesarias.setText(miformat.format(Float.parseFloat(totfilass[0])+filaajuste));
            alturausada=Float.parseFloat(puentefnece)*Float.parseFloat(this.jtf_altodepieza.getText());
            //alturausadas=miformat.format(alturausada).split(".");
            this.jtf_alturamaterial.setText(miformat.format(alturausada));
            this.jtf_alturamt.setText(miformat.format(alturausada/100));

            this.jtf_usomatcms.setText(miformatuso.format(Float.parseFloat(this.jtf_altodepieza.getText().toString())/(Float.parseFloat(this.jtf_piezasxfila.getText().toString())/Float.parseFloat(this.jtf_piezasterminadas.getText().toString()))));
            this.jtf_usomatmetros.setText(miformatuso.format(Float.parseFloat(this.jtf_usomatcms.getText().toString())/100));
        }

    /** This method is called from within the constructor to
     * initialize the form.
     * WARNING: Do NOT modify this code. The content of this method is
     * always regenerated by the Form Editor.
     */
    @SuppressWarnings("unchecked")
    // <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents
    private void initComponents() {

        jtf_busqueda = new javax.swing.JTextField();
        buttonGroup1 = new javax.swing.ButtonGroup();
        jTabbedPane1 = new javax.swing.JTabbedPane();
        jPanel1 = new javax.swing.JPanel();
        jScrollPane1 = new javax.swing.JScrollPane();
        jt_catalogo_laserproduccion = new javax.swing.JTable()
        {
            public boolean isCellEditable(int rowIndex, int mColIndex) {
                return false;
            }
        };
        ;
        jPanel4 = new javax.swing.JPanel();
        jScrollPane2 = new javax.swing.JScrollPane();
        jt_catalogo_producionxdia = new javax.swing.JTable()
        {
            public boolean isCellEditable(int rowIndex, int mColIndex) {
                return false;
            }
        };
        ;
        jLabel1 = new javax.swing.JLabel();
        jLabel3 = new javax.swing.JLabel();
        jLabel4 = new javax.swing.JLabel();
        jLabel5 = new javax.swing.JLabel();
        jtf_piezas = new javax.swing.JTextField();
        jtf_minutos = new javax.swing.JTextField();
        jtf_importecosto = new javax.swing.JTextField();
        jPanel5 = new javax.swing.JPanel();
        jScrollPane3 = new javax.swing.JScrollPane();
        jt_catalogo_insumospatrones = new javax.swing.JTable()
        {
            public boolean isCellEditable(int rowIndex, int mColIndex) {
                return false;
            }
        };
        ;
        jScrollPane4 = new javax.swing.JScrollPane();
        jt_catalogo_insumospathisto = new javax.swing.JTable()
        {
            public boolean isCellEditable(int rowIndex, int mColIndex) {
                return false;
            }
        };
        ;
        jbtn_patbusqueda = new javax.swing.JButton();
        jrbtn_patidinsumo = new javax.swing.JRadioButton();
        jrbtn_patdescripcion = new javax.swing.JRadioButton();
        jtf_insumosbusqueda = new javax.swing.JTextField();
        jrbtn_patidinsumo1 = new javax.swing.JRadioButton();
        jLabel2 = new javax.swing.JLabel();
        jLabel14 = new javax.swing.JLabel();
        jtf_regfind = new javax.swing.JTextField();
        jlbl_textobusca = new javax.swing.JLabel();
        jPanel6 = new javax.swing.JPanel();
        jPanel7 = new javax.swing.JPanel();
        jLabel23 = new javax.swing.JLabel();
        jtf_anchomaterial = new javax.swing.JTextField();
        jtf_anchopieza = new javax.swing.JTextField();
        jlbl_costo2 = new javax.swing.JLabel();
        jlbl_costo3 = new javax.swing.JLabel();
        jtf_altodepieza = new javax.swing.JTextField();
        jtf_canpzaingresa = new javax.swing.JTextField();
        jLabel7 = new javax.swing.JLabel();
        jLabel8 = new javax.swing.JLabel();
        jtf_piezasxfila = new javax.swing.JTextField();
        jtf_filasnecesarias = new javax.swing.JTextField();
        jLabel9 = new javax.swing.JLabel();
        jLabel10 = new javax.swing.JLabel();
        jtf_alturamaterial = new javax.swing.JTextField();
        jtf_alturamt = new javax.swing.JTextField();
        jLabel11 = new javax.swing.JLabel();
        jbtn_calcular = new javax.swing.JButton();
        jLabel6 = new javax.swing.JLabel();
        jtf_piezasterminadas = new javax.swing.JTextField();
        jLabel12 = new javax.swing.JLabel();
        jtf_usomatcms = new javax.swing.JTextField();
        jLabel13 = new javax.swing.JLabel();
        jtf_usomatmetros = new javax.swing.JTextField();
        jPanel8 = new javax.swing.JPanel();
        jScrollPane5 = new javax.swing.JScrollPane();
        jt_catalogo_laserrequisicion = new javax.swing.JTable()
        {
            public boolean isCellEditable(int rowIndex, int mColIndex) {
                return false;
            }
        };
        ;
        jPanel2 = new javax.swing.JPanel();
        jScrollPane6 = new javax.swing.JScrollPane();
        jepn_fotos = new javax.swing.JEditorPane();
        jPanel3 = new javax.swing.JPanel();
        jbtn_agregar = new javax.swing.JButton();
        jbtn_agregarrequi = new javax.swing.JButton();
        jtbn_agregarpatron = new javax.swing.JButton();
        jMenuBar1 = new javax.swing.JMenuBar();
        jMenu1 = new javax.swing.JMenu();
        jMenuItem1 = new javax.swing.JMenuItem();
        jmni_salir = new javax.swing.JMenuItem();
        jMenu2 = new javax.swing.JMenu();
        jmni_escape = new javax.swing.JMenuItem();
        jmni_actualizar = new javax.swing.JMenuItem();
        jmni_calcularusomat = new javax.swing.JMenuItem();
        jmni_requisicionagrega = new javax.swing.JMenuItem();
        jMenu3 = new javax.swing.JMenu();

        org.jdesktop.application.ResourceMap resourceMap = org.jdesktop.application.Application.getInstance(sie_invdis.Sie_invdisApp.class).getContext().getResourceMap(laser_entradas_catalogo.class);
        jtf_busqueda.setToolTipText(resourceMap.getString("jtf_busqueda.toolTipText")); // NOI18N
        jtf_busqueda.setName("jtf_busqueda"); // NOI18N
        jtf_busqueda.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jtf_busquedaActionPerformed(evt);
            }
        });

        setDefaultCloseOperation(javax.swing.WindowConstants.DISPOSE_ON_CLOSE);
        setTitle(resourceMap.getString("Form.title")); // NOI18N
        setName("Form"); // NOI18N

        jTabbedPane1.setName("jTabbedPane1"); // NOI18N
        jTabbedPane1.addChangeListener(new javax.swing.event.ChangeListener() {
            public void stateChanged(javax.swing.event.ChangeEvent evt) {
                jTabbedPane1StateChanged(evt);
            }
        });

        jPanel1.setName("jPanel1"); // NOI18N

        jScrollPane1.setName("jScrollPane1"); // NOI18N

        jt_catalogo_laserproduccion.setModel(this.jtable_modelo_diarioproduccion);
        jt_catalogo_laserproduccion.setName("jt_catalogo_laserproduccion"); // NOI18N
        jt_catalogo_laserproduccion.setRowHeight(22);
        jt_catalogo_laserproduccion.addMouseListener(new java.awt.event.MouseAdapter() {
            public void mouseClicked(java.awt.event.MouseEvent evt) {
                jt_catalogo_insumos_requiMouseClicked(evt);
                if(evt.getClickCount() >= 2)
                {
                    dioclick(evt);
                    //System.out.println(" double click" );

                }
            }
        });
        jScrollPane1.setViewportView(jt_catalogo_laserproduccion);

        javax.swing.GroupLayout jPanel1Layout = new javax.swing.GroupLayout(jPanel1);
        jPanel1.setLayout(jPanel1Layout);
        jPanel1Layout.setHorizontalGroup(
            jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel1Layout.createSequentialGroup()
                .addContainerGap()
                .addComponent(jScrollPane1, javax.swing.GroupLayout.DEFAULT_SIZE, 1045, Short.MAX_VALUE)
                .addContainerGap())
        );
        jPanel1Layout.setVerticalGroup(
            jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel1Layout.createSequentialGroup()
                .addContainerGap(80, Short.MAX_VALUE)
                .addComponent(jScrollPane1, javax.swing.GroupLayout.PREFERRED_SIZE, 414, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addGap(39, 39, 39))
        );

        jTabbedPane1.addTab(resourceMap.getString("jPanel1.TabConstraints.tabTitle"), jPanel1); // NOI18N

        jPanel4.setName("jPanel4"); // NOI18N

        jScrollPane2.setName("jScrollPane2"); // NOI18N

        jt_catalogo_producionxdia.setModel(this.jtable_modelo_produccionxdia);
        jt_catalogo_producionxdia.setName("jt_catalogo_producionxdia"); // NOI18N
        jt_catalogo_producionxdia.setRowHeight(22);
        jScrollPane2.setViewportView(jt_catalogo_producionxdia);

        jLabel1.setFont(resourceMap.getFont("jLabel1.font")); // NOI18N
        jLabel1.setText(resourceMap.getString("jLabel1.text")); // NOI18N
        jLabel1.setName("jLabel1"); // NOI18N

        jLabel3.setText(resourceMap.getString("jLabel3.text")); // NOI18N
        jLabel3.setName("jLabel3"); // NOI18N

        jLabel4.setText(resourceMap.getString("jLabel4.text")); // NOI18N
        jLabel4.setName("jLabel4"); // NOI18N

        jLabel5.setText(resourceMap.getString("jLabel5.text")); // NOI18N
        jLabel5.setName("jLabel5"); // NOI18N

        jtf_piezas.setEditable(false);
        jtf_piezas.setText(resourceMap.getString("jtf_piezas.text")); // NOI18N
        jtf_piezas.setName("jtf_piezas"); // NOI18N

        jtf_minutos.setEditable(false);
        jtf_minutos.setFont(resourceMap.getFont("jtf_minutos.font")); // NOI18N
        jtf_minutos.setText(resourceMap.getString("jtf_minutos.text")); // NOI18N
        jtf_minutos.setName("jtf_minutos"); // NOI18N

        jtf_importecosto.setEditable(false);
        jtf_importecosto.setFont(resourceMap.getFont("jtf_importecosto.font")); // NOI18N
        jtf_importecosto.setText(resourceMap.getString("jtf_importecosto.text")); // NOI18N
        jtf_importecosto.setName("jtf_importecosto"); // NOI18N

        javax.swing.GroupLayout jPanel4Layout = new javax.swing.GroupLayout(jPanel4);
        jPanel4.setLayout(jPanel4Layout);
        jPanel4Layout.setHorizontalGroup(
            jPanel4Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel4Layout.createSequentialGroup()
                .addContainerGap()
                .addGroup(jPanel4Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel4Layout.createSequentialGroup()
                        .addComponent(jLabel1)
                        .addGap(88, 88, 88)
                        .addComponent(jLabel3)
                        .addGap(1, 1, 1)
                        .addComponent(jtf_piezas, javax.swing.GroupLayout.PREFERRED_SIZE, 77, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addComponent(jLabel4)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addComponent(jtf_minutos, javax.swing.GroupLayout.PREFERRED_SIZE, 102, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addComponent(jLabel5)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addComponent(jtf_importecosto, javax.swing.GroupLayout.PREFERRED_SIZE, 121, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addGap(173, 173, 173))
                    .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel4Layout.createSequentialGroup()
                        .addComponent(jScrollPane2, javax.swing.GroupLayout.DEFAULT_SIZE, 1045, Short.MAX_VALUE)
                        .addContainerGap())))
        );
        jPanel4Layout.setVerticalGroup(
            jPanel4Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel4Layout.createSequentialGroup()
                .addContainerGap(70, Short.MAX_VALUE)
                .addComponent(jScrollPane2, javax.swing.GroupLayout.PREFERRED_SIZE, 392, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addGroup(jPanel4Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(jLabel3)
                    .addComponent(jLabel4)
                    .addComponent(jLabel5)
                    .addComponent(jtf_piezas, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(jtf_minutos, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(jtf_importecosto, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(jLabel1))
                .addGap(45, 45, 45))
        );

        jTabbedPane1.addTab(resourceMap.getString("jPanel4.TabConstraints.tabTitle"), jPanel4); // NOI18N

        jPanel5.setName("jPanel5"); // NOI18N

        jScrollPane3.setName("jScrollPane3"); // NOI18N

        jt_catalogo_insumospatrones.setModel(this.jtable_modelo_insumospatrones);
        jt_catalogo_insumospatrones.setName("jt_catalogo_insumospatrones"); // NOI18N
        jt_catalogo_insumospatrones.setRowHeight(22);
        jt_catalogo_insumospatrones.addMouseListener(new java.awt.event.MouseAdapter() {
            public void mouseClicked(java.awt.event.MouseEvent evt) {
                jt_catalogo_insumospatronesMouseClicked(evt);
                if(evt.getClickCount() >= 2)
                {
                    dioclickpat(evt);
                    //System.out.println(" double click" );
                }
            }
        });
        jScrollPane3.setViewportView(jt_catalogo_insumospatrones);

        jScrollPane4.setName("jScrollPane4"); // NOI18N

        jt_catalogo_insumospathisto.setModel(this.jtable_modelo_inspat_historial);
        jt_catalogo_insumospathisto.setName("jt_catalogo_insumospathisto"); // NOI18N
        jt_catalogo_insumospathisto.setRowHeight(22);
        jScrollPane4.setViewportView(jt_catalogo_insumospathisto);

        jbtn_patbusqueda.setIcon(resourceMap.getIcon("jbtn_patbusqueda.icon")); // NOI18N
        jbtn_patbusqueda.setText(resourceMap.getString("jbtn_patbusqueda.text")); // NOI18N
        jbtn_patbusqueda.setToolTipText(resourceMap.getString("jbtn_patbusqueda.toolTipText")); // NOI18N
        jbtn_patbusqueda.setName("jbtn_patbusqueda"); // NOI18N
        jbtn_patbusqueda.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jbtn_patbusquedaActionPerformed(evt);
            }
        });

        buttonGroup1.add(jrbtn_patidinsumo);
        jrbtn_patidinsumo.setText(resourceMap.getString("jrbtn_patidinsumo.text")); // NOI18N
        jrbtn_patidinsumo.setToolTipText(resourceMap.getString("jrbtn_patidinsumo.toolTipText")); // NOI18N
        jrbtn_patidinsumo.setActionCommand(resourceMap.getString("jrbtn_patidinsumo.actionCommand")); // NOI18N
        jrbtn_patidinsumo.setName("jrbtn_patidinsumo"); // NOI18N
        jrbtn_patidinsumo.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jrbtn_patidinsumoActionPerformed(evt);
            }
        });

        buttonGroup1.add(jrbtn_patdescripcion);
        jrbtn_patdescripcion.setText(resourceMap.getString("jrbtn_patdescripcion.text")); // NOI18N
        jrbtn_patdescripcion.setToolTipText(resourceMap.getString("jrbtn_patdescripcion.toolTipText")); // NOI18N
        jrbtn_patdescripcion.setActionCommand(resourceMap.getString("jrbtn_patdescripcion.actionCommand")); // NOI18N
        jrbtn_patdescripcion.setName("jrbtn_patdescripcion"); // NOI18N
        jrbtn_patdescripcion.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jrbtn_patdescripcionActionPerformed(evt);
            }
        });

        jtf_insumosbusqueda.setText(resourceMap.getString("jtf_insumosbusqueda.text")); // NOI18N
        jtf_insumosbusqueda.setName("jtf_insumosbusqueda"); // NOI18N
        jtf_insumosbusqueda.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jtf_insumosbusquedaActionPerformed(evt);
            }
        });

        buttonGroup1.add(jrbtn_patidinsumo1);
        jrbtn_patidinsumo1.setText(resourceMap.getString("jrbtn_patidinsumo1.text")); // NOI18N
        jrbtn_patidinsumo1.setToolTipText(resourceMap.getString("jrbtn_patidinsumo1.toolTipText")); // NOI18N
        jrbtn_patidinsumo1.setActionCommand(resourceMap.getString("jrbtn_patidinsumo1.actionCommand")); // NOI18N
        jrbtn_patidinsumo1.setName("jrbtn_patidinsumo1"); // NOI18N
        jrbtn_patidinsumo1.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jrbtn_patidinsumo1ActionPerformed(evt);
            }
        });

        jLabel2.setText(resourceMap.getString("jLabel2.text")); // NOI18N
        jLabel2.setName("jLabel2"); // NOI18N

        jLabel14.setText(resourceMap.getString("jLabel14.text")); // NOI18N
        jLabel14.setName("jLabel14"); // NOI18N

        jtf_regfind.setEditable(false);
        jtf_regfind.setText(resourceMap.getString("jtf_regfind.text")); // NOI18N
        jtf_regfind.setName("jtf_regfind"); // NOI18N

        jlbl_textobusca.setText(resourceMap.getString("jlbl_textobusca.text")); // NOI18N
        jlbl_textobusca.setName("jlbl_textobusca"); // NOI18N

        javax.swing.GroupLayout jPanel5Layout = new javax.swing.GroupLayout(jPanel5);
        jPanel5.setLayout(jPanel5Layout);
        jPanel5Layout.setHorizontalGroup(
            jPanel5Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel5Layout.createSequentialGroup()
                .addGroup(jPanel5Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addComponent(jScrollPane4, javax.swing.GroupLayout.PREFERRED_SIZE, 713, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addGroup(jPanel5Layout.createSequentialGroup()
                        .addGap(130, 130, 130)
                        .addComponent(jrbtn_patidinsumo1)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addGroup(jPanel5Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                            .addGroup(jPanel5Layout.createSequentialGroup()
                                .addComponent(jrbtn_patidinsumo)
                                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                                .addComponent(jrbtn_patdescripcion))
                            .addGroup(jPanel5Layout.createSequentialGroup()
                                .addComponent(jtf_insumosbusqueda, javax.swing.GroupLayout.PREFERRED_SIZE, 136, javax.swing.GroupLayout.PREFERRED_SIZE)
                                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                                .addComponent(jbtn_patbusqueda)
                                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                                .addComponent(jLabel2)
                                .addGap(41, 41, 41)
                                .addComponent(jLabel14)))
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addComponent(jtf_regfind, javax.swing.GroupLayout.PREFERRED_SIZE, 58, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addGap(18, 18, 18)
                        .addComponent(jlbl_textobusca, javax.swing.GroupLayout.PREFERRED_SIZE, 128, javax.swing.GroupLayout.PREFERRED_SIZE))
                    .addComponent(jScrollPane3, javax.swing.GroupLayout.DEFAULT_SIZE, 1055, Short.MAX_VALUE))
                .addContainerGap())
        );
        jPanel5Layout.setVerticalGroup(
            jPanel5Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel5Layout.createSequentialGroup()
                .addGroup(jPanel5Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addGroup(jPanel5Layout.createSequentialGroup()
                        .addContainerGap()
                        .addGroup(jPanel5Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                            .addComponent(jtf_insumosbusqueda, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addComponent(jbtn_patbusqueda)
                            .addComponent(jLabel2))
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addGroup(jPanel5Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                            .addComponent(jrbtn_patidinsumo, javax.swing.GroupLayout.PREFERRED_SIZE, 18, javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addComponent(jrbtn_patdescripcion, javax.swing.GroupLayout.PREFERRED_SIZE, 18, javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addComponent(jrbtn_patidinsumo1, javax.swing.GroupLayout.PREFERRED_SIZE, 18, javax.swing.GroupLayout.PREFERRED_SIZE)))
                    .addGroup(jPanel5Layout.createSequentialGroup()
                        .addGap(24, 24, 24)
                        .addGroup(jPanel5Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                            .addComponent(jLabel14)
                            .addComponent(jtf_regfind, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addComponent(jlbl_textobusca))))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addComponent(jScrollPane3, javax.swing.GroupLayout.DEFAULT_SIZE, 372, Short.MAX_VALUE)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addComponent(jScrollPane4, javax.swing.GroupLayout.PREFERRED_SIZE, 82, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addContainerGap())
        );

        jTabbedPane1.addTab(resourceMap.getString("jPanel5.TabConstraints.tabTitle"), jPanel5); // NOI18N

        jPanel6.setName("jPanel6"); // NOI18N

        jPanel7.setBorder(javax.swing.BorderFactory.createTitledBorder(resourceMap.getString("jPanel7.border.title"))); // NOI18N
        jPanel7.setName("jPanel7"); // NOI18N

        jLabel23.setText(resourceMap.getString("jLabel23.text")); // NOI18N
        jLabel23.setName("jLabel23"); // NOI18N

        jtf_anchomaterial.setText(resourceMap.getString("jtf_anchomaterial.text")); // NOI18N
        jtf_anchomaterial.setToolTipText(resourceMap.getString("jtf_anchomaterial.toolTipText")); // NOI18N
        jtf_anchomaterial.setName("jtf_anchomaterial"); // NOI18N
        jtf_anchomaterial.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jtf_anchomaterialActionPerformed(evt);
            }
        });

        jtf_anchopieza.setText(resourceMap.getString("jtf_anchopieza.text")); // NOI18N
        jtf_anchopieza.setName("jtf_anchopieza"); // NOI18N
        jtf_anchopieza.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jtf_anchopiezaActionPerformed(evt);
            }
        });

        jlbl_costo2.setText(resourceMap.getString("jlbl_costo2.text")); // NOI18N
        jlbl_costo2.setName("jlbl_costo2"); // NOI18N

        jlbl_costo3.setText(resourceMap.getString("jlbl_costo3.text")); // NOI18N
        jlbl_costo3.setName("jlbl_costo3"); // NOI18N

        jtf_altodepieza.setText(resourceMap.getString("jtf_altodepieza.text")); // NOI18N
        jtf_altodepieza.setName("jtf_altodepieza"); // NOI18N
        jtf_altodepieza.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jtf_altodepiezaActionPerformed(evt);
            }
        });

        jtf_canpzaingresa.setText(resourceMap.getString("jtf_canpzaingresa.text")); // NOI18N
        jtf_canpzaingresa.setToolTipText(resourceMap.getString("jtf_canpzaingresa.toolTipText")); // NOI18N
        jtf_canpzaingresa.setName("jtf_canpzaingresa"); // NOI18N
        jtf_canpzaingresa.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jtf_canpzaingresaActionPerformed(evt);
            }
        });

        jLabel7.setText(resourceMap.getString("jLabel7.text")); // NOI18N
        jLabel7.setName("jLabel7"); // NOI18N

        jLabel8.setText(resourceMap.getString("jLabel8.text")); // NOI18N
        jLabel8.setName("jLabel8"); // NOI18N

        jtf_piezasxfila.setEditable(false);
        jtf_piezasxfila.setFont(resourceMap.getFont("jtf_piezasxfila.font")); // NOI18N
        jtf_piezasxfila.setText(resourceMap.getString("jtf_piezasxfila.text")); // NOI18N
        jtf_piezasxfila.setName("jtf_piezasxfila"); // NOI18N

        jtf_filasnecesarias.setEditable(false);
        jtf_filasnecesarias.setFont(resourceMap.getFont("jtf_filasnecesarias.font")); // NOI18N
        jtf_filasnecesarias.setText(resourceMap.getString("jtf_filasnecesarias.text")); // NOI18N
        jtf_filasnecesarias.setName("jtf_filasnecesarias"); // NOI18N

        jLabel9.setText(resourceMap.getString("jLabel9.text")); // NOI18N
        jLabel9.setName("jLabel9"); // NOI18N

        jLabel10.setText(resourceMap.getString("jLabel10.text")); // NOI18N
        jLabel10.setName("jLabel10"); // NOI18N

        jtf_alturamaterial.setEditable(false);
        jtf_alturamaterial.setFont(resourceMap.getFont("jtf_alturamaterial.font")); // NOI18N
        jtf_alturamaterial.setText(resourceMap.getString("jtf_alturamaterial.text")); // NOI18N
        jtf_alturamaterial.setName("jtf_alturamaterial"); // NOI18N

        jtf_alturamt.setEditable(false);
        jtf_alturamt.setFont(resourceMap.getFont("jtf_alturamt.font")); // NOI18N
        jtf_alturamt.setText(resourceMap.getString("jtf_alturamt.text")); // NOI18N
        jtf_alturamt.setName("jtf_alturamt"); // NOI18N

        jLabel11.setText(resourceMap.getString("jLabel11.text")); // NOI18N
        jLabel11.setName("jLabel11"); // NOI18N

        jbtn_calcular.setIcon(resourceMap.getIcon("jbtn_calcular.icon")); // NOI18N
        jbtn_calcular.setText(resourceMap.getString("jbtn_calcular.text")); // NOI18N
        jbtn_calcular.setName("jbtn_calcular"); // NOI18N
        jbtn_calcular.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jbtn_calcularActionPerformed(evt);
            }
        });

        jLabel6.setText(resourceMap.getString("jLabel6.text")); // NOI18N
        jLabel6.setName("jLabel6"); // NOI18N

        jtf_piezasterminadas.setText(resourceMap.getString("jtf_piezasterminadas.text")); // NOI18N
        jtf_piezasterminadas.setToolTipText(resourceMap.getString("jtf_piezasterminadas.toolTipText")); // NOI18N
        jtf_piezasterminadas.setName("jtf_piezasterminadas"); // NOI18N
        jtf_piezasterminadas.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jtf_piezasterminadasActionPerformed(evt);
            }
        });

        jLabel12.setText(resourceMap.getString("jLabel12.text")); // NOI18N
        jLabel12.setName("jLabel12"); // NOI18N

        jtf_usomatcms.setEditable(false);
        jtf_usomatcms.setFont(resourceMap.getFont("jtf_usomatcms.font")); // NOI18N
        jtf_usomatcms.setText(resourceMap.getString("jtf_usomatcms.text")); // NOI18N
        jtf_usomatcms.setToolTipText(resourceMap.getString("jtf_usomatcms.toolTipText")); // NOI18N
        jtf_usomatcms.setName("jtf_usomatcms"); // NOI18N
        jtf_usomatcms.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jtf_usomatcmsActionPerformed(evt);
            }
        });

        jLabel13.setText(resourceMap.getString("jLabel13.text")); // NOI18N
        jLabel13.setName("jLabel13"); // NOI18N

        jtf_usomatmetros.setEditable(false);
        jtf_usomatmetros.setFont(resourceMap.getFont("jtf_usomatmetros.font")); // NOI18N
        jtf_usomatmetros.setText(resourceMap.getString("jtf_usomatmetros.text")); // NOI18N
        jtf_usomatmetros.setToolTipText(resourceMap.getString("jtf_usomatmetros.toolTipText")); // NOI18N
        jtf_usomatmetros.setName("jtf_usomatmetros"); // NOI18N
        jtf_usomatmetros.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jtf_usomatmetrosActionPerformed(evt);
            }
        });

        javax.swing.GroupLayout jPanel7Layout = new javax.swing.GroupLayout(jPanel7);
        jPanel7.setLayout(jPanel7Layout);
        jPanel7Layout.setHorizontalGroup(
            jPanel7Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel7Layout.createSequentialGroup()
                .addGap(44, 44, 44)
                .addGroup(jPanel7Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addGroup(jPanel7Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING, false)
                        .addGroup(jPanel7Layout.createSequentialGroup()
                            .addComponent(jlbl_costo3, javax.swing.GroupLayout.PREFERRED_SIZE, 74, javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED))
                        .addGroup(jPanel7Layout.createSequentialGroup()
                            .addComponent(jLabel7, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                            .addGap(28, 28, 28)))
                    .addGroup(jPanel7Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)
                        .addGroup(jPanel7Layout.createSequentialGroup()
                            .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                            .addComponent(jLabel23, javax.swing.GroupLayout.DEFAULT_SIZE, 76, Short.MAX_VALUE)
                            .addGap(17, 17, 17))
                        .addGroup(jPanel7Layout.createSequentialGroup()
                            .addComponent(jlbl_costo2, javax.swing.GroupLayout.DEFAULT_SIZE, 89, Short.MAX_VALUE)
                            .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED))))
                .addGroup(jPanel7Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addComponent(jtf_anchomaterial, javax.swing.GroupLayout.PREFERRED_SIZE, 47, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(jtf_anchopieza, javax.swing.GroupLayout.PREFERRED_SIZE, 41, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(jtf_canpzaingresa, javax.swing.GroupLayout.PREFERRED_SIZE, 61, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(jtf_altodepieza, javax.swing.GroupLayout.PREFERRED_SIZE, 41, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addGap(41, 41, 41)
                .addGroup(jPanel7Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addComponent(jLabel8)
                    .addComponent(jLabel9)
                    .addComponent(jLabel11)
                    .addComponent(jLabel10))
                .addGap(29, 29, 29)
                .addGroup(jPanel7Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING, false)
                    .addComponent(jtf_alturamt)
                    .addComponent(jtf_alturamaterial)
                    .addComponent(jtf_filasnecesarias, javax.swing.GroupLayout.Alignment.LEADING)
                    .addComponent(jtf_piezasxfila, javax.swing.GroupLayout.DEFAULT_SIZE, 68, Short.MAX_VALUE))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                .addGroup(jPanel7Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addGroup(jPanel7Layout.createSequentialGroup()
                        .addComponent(jLabel6)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addComponent(jtf_piezasterminadas, javax.swing.GroupLayout.PREFERRED_SIZE, 47, javax.swing.GroupLayout.PREFERRED_SIZE))
                    .addGroup(jPanel7Layout.createSequentialGroup()
                        .addGroup(jPanel7Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                            .addComponent(jLabel12)
                            .addComponent(jLabel13))
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addGroup(jPanel7Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                            .addComponent(jtf_usomatmetros, javax.swing.GroupLayout.PREFERRED_SIZE, 73, javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addComponent(jtf_usomatcms, javax.swing.GroupLayout.PREFERRED_SIZE, 73, javax.swing.GroupLayout.PREFERRED_SIZE))))
                .addGap(77, 77, 77))
            .addGroup(jPanel7Layout.createSequentialGroup()
                .addGap(49, 49, 49)
                .addComponent(jbtn_calcular)
                .addContainerGap(558, Short.MAX_VALUE))
        );
        jPanel7Layout.setVerticalGroup(
            jPanel7Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel7Layout.createSequentialGroup()
                .addGroup(jPanel7Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addGroup(jPanel7Layout.createSequentialGroup()
                        .addGap(46, 46, 46)
                        .addGroup(jPanel7Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                            .addComponent(jLabel23)
                            .addComponent(jtf_anchomaterial, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                        .addGap(24, 24, 24)
                        .addGroup(jPanel7Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                            .addComponent(jlbl_costo2)
                            .addComponent(jtf_anchopieza, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                        .addGap(18, 18, 18)
                        .addGroup(jPanel7Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                            .addComponent(jlbl_costo3)
                            .addComponent(jtf_altodepieza, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addComponent(jLabel10)
                            .addComponent(jtf_alturamaterial, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addComponent(jLabel13)
                            .addComponent(jtf_usomatmetros, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                        .addGap(18, 18, 18)
                        .addGroup(jPanel7Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                            .addComponent(jLabel7)
                            .addComponent(jtf_canpzaingresa, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addComponent(jLabel11)
                            .addComponent(jtf_alturamt, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)))
                    .addGroup(jPanel7Layout.createSequentialGroup()
                        .addGap(44, 44, 44)
                        .addGroup(jPanel7Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                            .addComponent(jLabel8)
                            .addComponent(jtf_piezasxfila, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addComponent(jLabel6)
                            .addComponent(jtf_piezasterminadas, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                        .addGroup(jPanel7Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                            .addGroup(jPanel7Layout.createSequentialGroup()
                                .addGap(24, 24, 24)
                                .addComponent(jLabel9))
                            .addGroup(jPanel7Layout.createSequentialGroup()
                                .addGap(18, 18, 18)
                                .addGroup(jPanel7Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                                    .addComponent(jtf_filasnecesarias, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                                    .addComponent(jLabel12)
                                    .addComponent(jtf_usomatcms, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))))))
                .addGap(18, 18, 18)
                .addComponent(jbtn_calcular)
                .addContainerGap(20, Short.MAX_VALUE))
        );

        javax.swing.GroupLayout jPanel6Layout = new javax.swing.GroupLayout(jPanel6);
        jPanel6.setLayout(jPanel6Layout);
        jPanel6Layout.setHorizontalGroup(
            jPanel6Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel6Layout.createSequentialGroup()
                .addContainerGap()
                .addComponent(jPanel7, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addContainerGap(341, Short.MAX_VALUE))
        );
        jPanel6Layout.setVerticalGroup(
            jPanel6Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel6Layout.createSequentialGroup()
                .addGap(82, 82, 82)
                .addComponent(jPanel7, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addContainerGap(170, Short.MAX_VALUE))
        );

        jTabbedPane1.addTab(resourceMap.getString("jPanel6.TabConstraints.tabTitle"), jPanel6); // NOI18N

        jPanel8.setName("jPanel8"); // NOI18N

        jScrollPane5.setName("jScrollPane5"); // NOI18N

        jt_catalogo_laserrequisicion.setModel(this.jtable_modelo_requisicioncata);
        jt_catalogo_laserrequisicion.setName("jt_catalogo_laserrequisicion"); // NOI18N
        jt_catalogo_laserrequisicion.setRowHeight(22);
        jt_catalogo_laserrequisicion.addMouseListener(new java.awt.event.MouseAdapter() {
            public void mouseClicked(java.awt.event.MouseEvent evt) {
                jt_catalogo_laserrequisicionMouseClicked(evt);
                if(evt.getClickCount() >= 2)
                {
                    dioclickrequi(evt);
                    //System.out.println(" double click" );
                }
            }
        });
        jScrollPane5.setViewportView(jt_catalogo_laserrequisicion);

        javax.swing.GroupLayout jPanel8Layout = new javax.swing.GroupLayout(jPanel8);
        jPanel8.setLayout(jPanel8Layout);
        jPanel8Layout.setHorizontalGroup(
            jPanel8Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel8Layout.createSequentialGroup()
                .addContainerGap()
                .addComponent(jScrollPane5, javax.swing.GroupLayout.DEFAULT_SIZE, 1045, Short.MAX_VALUE)
                .addContainerGap())
        );
        jPanel8Layout.setVerticalGroup(
            jPanel8Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel8Layout.createSequentialGroup()
                .addContainerGap(59, Short.MAX_VALUE)
                .addComponent(jScrollPane5, javax.swing.GroupLayout.PREFERRED_SIZE, 429, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addGap(45, 45, 45))
        );

        jTabbedPane1.addTab(resourceMap.getString("jPanel8.TabConstraints.tabTitle"), jPanel8); // NOI18N

        jPanel2.setName("jPanel2"); // NOI18N

        jScrollPane6.setName("jScrollPane6"); // NOI18N

        jepn_fotos.setContentType(resourceMap.getString("jepn_fotos.contentType")); // NOI18N
        jepn_fotos.setName("jepn_fotos"); // NOI18N
        jScrollPane6.setViewportView(jepn_fotos);

        javax.swing.GroupLayout jPanel2Layout = new javax.swing.GroupLayout(jPanel2);
        jPanel2.setLayout(jPanel2Layout);
        jPanel2Layout.setHorizontalGroup(
            jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel2Layout.createSequentialGroup()
                .addComponent(jScrollPane6, javax.swing.GroupLayout.DEFAULT_SIZE, 1055, Short.MAX_VALUE)
                .addContainerGap())
        );
        jPanel2Layout.setVerticalGroup(
            jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel2Layout.createSequentialGroup()
                .addComponent(jScrollPane6, javax.swing.GroupLayout.DEFAULT_SIZE, 522, Short.MAX_VALUE)
                .addContainerGap())
        );

        jTabbedPane1.addTab(resourceMap.getString("jPanel2.TabConstraints.tabTitle"), jPanel2); // NOI18N

        jPanel3.setBorder(javax.swing.BorderFactory.createEtchedBorder());
        jPanel3.setName("jPanel3"); // NOI18N

        jbtn_agregar.setIcon(resourceMap.getIcon("jbtn_agregar.icon")); // NOI18N
        jbtn_agregar.setText(resourceMap.getString("jbtn_agregar.text")); // NOI18N
        jbtn_agregar.setName("jbtn_agregar"); // NOI18N
        jbtn_agregar.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jbtn_agregarActionPerformed(evt);
            }
        });

        jbtn_agregarrequi.setIcon(resourceMap.getIcon("jbtn_agregarrequi.icon")); // NOI18N
        jbtn_agregarrequi.setText(resourceMap.getString("jbtn_agregarrequi.text")); // NOI18N
        jbtn_agregarrequi.setName("jbtn_agregarrequi"); // NOI18N
        jbtn_agregarrequi.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jbtn_agregarrequiActionPerformed(evt);
            }
        });

        jtbn_agregarpatron.setIcon(resourceMap.getIcon("jtbn_agregarpatron.icon")); // NOI18N
        jtbn_agregarpatron.setText(resourceMap.getString("jtbn_agregarpatron.text")); // NOI18N
        jtbn_agregarpatron.setName("jtbn_agregarpatron"); // NOI18N
        jtbn_agregarpatron.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jtbn_agregarpatronActionPerformed(evt);
            }
        });

        javax.swing.GroupLayout jPanel3Layout = new javax.swing.GroupLayout(jPanel3);
        jPanel3.setLayout(jPanel3Layout);
        jPanel3Layout.setHorizontalGroup(
            jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel3Layout.createSequentialGroup()
                .addContainerGap()
                .addComponent(jtbn_agregarpatron)
                .addGap(97, 97, 97)
                .addComponent(jbtn_agregar)
                .addGap(47, 47, 47)
                .addComponent(jbtn_agregarrequi)
                .addContainerGap(489, Short.MAX_VALUE))
        );
        jPanel3Layout.setVerticalGroup(
            jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                .addComponent(jbtn_agregarrequi)
                .addComponent(jbtn_agregar)
                .addComponent(jtbn_agregarpatron))
        );

        jMenuBar1.setName("jMenuBar1"); // NOI18N

        jMenu1.setText(resourceMap.getString("jMenu1.text")); // NOI18N
        jMenu1.setName("jMenu1"); // NOI18N

        jMenuItem1.setAccelerator(javax.swing.KeyStroke.getKeyStroke(java.awt.event.KeyEvent.VK_E, java.awt.event.InputEvent.ALT_MASK));
        jMenuItem1.setIcon(resourceMap.getIcon("jMenuItem1.icon")); // NOI18N
        jMenuItem1.setText(resourceMap.getString("jMenuItem1.text")); // NOI18N
        jMenuItem1.setName("jMenuItem1"); // NOI18N
        jMenuItem1.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jMenuItem1ActionPerformed(evt);
            }
        });
        jMenu1.add(jMenuItem1);

        jmni_salir.setAccelerator(javax.swing.KeyStroke.getKeyStroke(java.awt.event.KeyEvent.VK_S, java.awt.event.InputEvent.ALT_MASK));
        jmni_salir.setIcon(resourceMap.getIcon("jmni_salir.icon")); // NOI18N
        jmni_salir.setText(resourceMap.getString("jmni_salir.text")); // NOI18N
        jmni_salir.setName("jmni_salir"); // NOI18N
        jmni_salir.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jmni_salirActionPerformed(evt);
            }
        });
        jMenu1.add(jmni_salir);

        jMenuBar1.add(jMenu1);

        jMenu2.setText(resourceMap.getString("jMenu2.text")); // NOI18N
        jMenu2.setName("jMenu2"); // NOI18N

        jmni_escape.setAccelerator(javax.swing.KeyStroke.getKeyStroke(java.awt.event.KeyEvent.VK_ESCAPE, 0));
        jmni_escape.setText(resourceMap.getString("jmni_escape.text")); // NOI18N
        jmni_escape.setName("jmni_escape"); // NOI18N
        jmni_escape.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jmni_escapeActionPerformed(evt);
            }
        });
        jMenu2.add(jmni_escape);

        jmni_actualizar.setAccelerator(javax.swing.KeyStroke.getKeyStroke(java.awt.event.KeyEvent.VK_F5, 0));
        jmni_actualizar.setIcon(resourceMap.getIcon("jmni_actualizar.icon")); // NOI18N
        jmni_actualizar.setText(resourceMap.getString("jmni_actualizar.text")); // NOI18N
        jmni_actualizar.setName("jmni_actualizar"); // NOI18N
        jmni_actualizar.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jmni_actualizarActionPerformed(evt);
            }
        });
        jMenu2.add(jmni_actualizar);

        jmni_calcularusomat.setAccelerator(javax.swing.KeyStroke.getKeyStroke(java.awt.event.KeyEvent.VK_C, java.awt.event.InputEvent.ALT_MASK));
        jmni_calcularusomat.setText(resourceMap.getString("jmni_calcularusomat.text")); // NOI18N
        jmni_calcularusomat.setName("jmni_calcularusomat"); // NOI18N
        jMenu2.add(jmni_calcularusomat);

        jmni_requisicionagrega.setAccelerator(javax.swing.KeyStroke.getKeyStroke(java.awt.event.KeyEvent.VK_R, java.awt.event.InputEvent.ALT_MASK));
        jmni_requisicionagrega.setText(resourceMap.getString("jmni_requisicionagrega.text")); // NOI18N
        jmni_requisicionagrega.setName("jmni_requisicionagrega"); // NOI18N
        jmni_requisicionagrega.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jmni_requisicionagregaActionPerformed(evt);
            }
        });
        jMenu2.add(jmni_requisicionagrega);

        jMenuBar1.add(jMenu2);

        jMenu3.setText(resourceMap.getString("jMenu3.text")); // NOI18N
        jMenu3.setName("jMenu3"); // NOI18N
        jMenuBar1.add(jMenu3);

        setJMenuBar(jMenuBar1);

        javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());
        getContentPane().setLayout(layout);
        layout.setHorizontalGroup(
            layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addComponent(jPanel3, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
            .addComponent(jTabbedPane1, javax.swing.GroupLayout.DEFAULT_SIZE, 1070, Short.MAX_VALUE)
        );
        layout.setVerticalGroup(
            layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(layout.createSequentialGroup()
                .addComponent(jPanel3, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addComponent(jTabbedPane1, javax.swing.GroupLayout.DEFAULT_SIZE, 561, Short.MAX_VALUE))
        );

        pack();
    }// </editor-fold>//GEN-END:initComponents

    private void jmni_salirActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jmni_salirActionPerformed
        // TODO add your handling code here:
      if(JOptionPane.showConfirmDialog(null, "Desea Salir?")==0) {
             this.dispose();
        }
       
}//GEN-LAST:event_jmni_salirActionPerformed

    private void jmni_escapeActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jmni_escapeActionPerformed
        // TODO add your handling code here:
      this.jmni_salirActionPerformed(evt);
    }//GEN-LAST:event_jmni_escapeActionPerformed

    private void jtf_busquedaActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jtf_busquedaActionPerformed
        // TODO add your handling code here:
        //this.jbtn_busquedaActionPerformed(evt);
}//GEN-LAST:event_jtf_busquedaActionPerformed

    private void jbtn_patbusquedaActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jbtn_patbusquedaActionPerformed
        // TODO add your handling code here:
        if(JOptionPane.showConfirmDialog(null, "Estan correcto sus Datos?")==0) {
            this.carga_datos_catinsumospatrones(patbuscamp, 0, this.jtf_insumosbusqueda.getText().toUpperCase().trim());
        }
}//GEN-LAST:event_jbtn_patbusquedaActionPerformed

    private void jbtn_agregarActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jbtn_agregarActionPerformed
        // TODO add your handling code here:
        laser_entradas_agregar flea=new laser_entradas_agregar();
        flea.pack();
        flea.setVisible(true);

}//GEN-LAST:event_jbtn_agregarActionPerformed

    private void jMenuItem1ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jMenuItem1ActionPerformed
        // TODO add your handling code here:
        this.jbtn_agregarActionPerformed(evt);
    }//GEN-LAST:event_jMenuItem1ActionPerformed

    private void jmni_actualizarActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jmni_actualizarActionPerformed
        // TODO add your handling code here:
         this.carga_datos(0, "");
    }//GEN-LAST:event_jmni_actualizarActionPerformed

    private void jTabbedPane1StateChanged(javax.swing.event.ChangeEvent evt) {//GEN-FIRST:event_jTabbedPane1StateChanged
        // TODO add your handling code here:
         indexactual=this.jTabbedPane1.getSelectedIndex();

          if((indexactual==0)&&(yacarguecatalogo==0))
                {
                   yacarguecatalogo=1;
                   this.carga_datos(0, "");
                }
          if((indexactual==1)&&(yacargueproxdia==0))
                {
                   yacargueproxdia=1;
                   this.carga_datos_produccionxdia(0, "");
                }
         if((indexactual==2)&&(yacarguecatinsu==0))
                {
                   yacarguecatinsu=1;
                   this.carga_datos_catinsumospatrones(0, 0,"");
                   this.jtf_insumosbusqueda.requestFocus();
                }
         if((indexactual==3))
                {
                   this.jtf_anchomaterial.requestFocus();
                }
         if((indexactual==4)&&(yacarguecatrequi==0))
                {
                     yacarguecatrequi=1;
                     this.carga_datos_catrequisiciones(2, "");
                }
         if((indexactual==5)&&(yacarguecatinsu==0))
                {
                   yacarguecatinsu=1;
                   this.carga_datos_catinsumospatrones(0, 0,"");
                   this.jtf_insumosbusqueda.requestFocus();
                }
    }//GEN-LAST:event_jTabbedPane1StateChanged



    private void jtf_anchomaterialActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jtf_anchomaterialActionPerformed
        // TODO add your handling code here:
        this.jtf_anchopieza.requestFocus();

}//GEN-LAST:event_jtf_anchomaterialActionPerformed

    private void jtf_canpzaingresaActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jtf_canpzaingresaActionPerformed
        // TODO add your handling code here:
        this.jtf_piezasterminadas.requestFocus();
        
}//GEN-LAST:event_jtf_canpzaingresaActionPerformed

    private void jtf_anchopiezaActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jtf_anchopiezaActionPerformed
        // TODO add your handling code here:
        this.jtf_altodepieza.requestFocus();
}//GEN-LAST:event_jtf_anchopiezaActionPerformed

    private void jtf_altodepiezaActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jtf_altodepiezaActionPerformed
        // TODO add your handling code here:
        this.jtf_canpzaingresa.requestFocus();
}//GEN-LAST:event_jtf_altodepiezaActionPerformed

    private void jbtn_calcularActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jbtn_calcularActionPerformed
        // TODO add your handling code here:
        this.calcularusumaterial();
    }//GEN-LAST:event_jbtn_calcularActionPerformed

    private void jbtn_agregarrequiActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jbtn_agregarrequiActionPerformed
        // TODO add your handling code here:
        laser_requisicion_agregar flra=new laser_requisicion_agregar();
        flra.pack();
        flra.setVisible(true);

}//GEN-LAST:event_jbtn_agregarrequiActionPerformed

    private void jmni_requisicionagregaActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jmni_requisicionagregaActionPerformed
        // TODO add your handling code here:
        this.jbtn_agregarrequiActionPerformed(evt);
    }//GEN-LAST:event_jmni_requisicionagregaActionPerformed

    private void jrbtn_patidinsumoActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jrbtn_patidinsumoActionPerformed
        // TODO add your handling code here:
        patbuscamp=Integer.parseInt(evt.getActionCommand().toString());
}//GEN-LAST:event_jrbtn_patidinsumoActionPerformed

    private void jrbtn_patdescripcionActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jrbtn_patdescripcionActionPerformed
        // TODO add your handling code here:
        patbuscamp=Integer.parseInt(evt.getActionCommand().toString());
}//GEN-LAST:event_jrbtn_patdescripcionActionPerformed

    private void jrbtn_patidinsumo1ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jrbtn_patidinsumo1ActionPerformed
        // TODO add your handling code here:
        patbuscamp=Integer.parseInt(evt.getActionCommand().toString());
    }//GEN-LAST:event_jrbtn_patidinsumo1ActionPerformed

    private void jtf_insumosbusquedaActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jtf_insumosbusquedaActionPerformed
        // TODO add your handling code here:
        this.jbtn_patbusquedaActionPerformed(evt);
    }//GEN-LAST:event_jtf_insumosbusquedaActionPerformed

    private void jtf_piezasterminadasActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jtf_piezasterminadasActionPerformed
        // TODO add your handling code here:
        this.jbtn_calcularActionPerformed(evt);
}//GEN-LAST:event_jtf_piezasterminadasActionPerformed

    private void jtf_usomatcmsActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jtf_usomatcmsActionPerformed
        // TODO add your handling code here:
}//GEN-LAST:event_jtf_usomatcmsActionPerformed

    private void jtf_usomatmetrosActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jtf_usomatmetrosActionPerformed
        // TODO add your handling code here:

}//GEN-LAST:event_jtf_usomatmetrosActionPerformed

    private void jtbn_agregarpatronActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jtbn_agregarpatronActionPerformed
        // TODO add your handling code here:

            laser_entradas_catalogo_patrones_detalle flecpd=new laser_entradas_catalogo_patrones_detalle(2,"","");
            flecpd.pack();
            flecpd.setVisible(true);
    }//GEN-LAST:event_jtbn_agregarpatronActionPerformed
    private void jt_catalogo_laserrequisicionMouseClicked(java.awt.event.MouseEvent evt) {
        // TODO add your handling code here:
    }
    private void jt_catalogo_insumospatronesMouseClicked(java.awt.event.MouseEvent evt) {
        // TODO add your handling code here:
    }
    private void jt_catalogo_insumos_requiMouseClicked(java.awt.event.MouseEvent evt) {
        // TODO add your handling code here:
    }
    /**
    * @param args the command line arguments
    */
    public static void main(String args[]) {
        java.awt.EventQueue.invokeLater(new Runnable() {
            public void run() {
                new laser_entradas_catalogo().setVisible(true);
            }
        });
    }

    // Variables declaration - do not modify//GEN-BEGIN:variables
    private javax.swing.ButtonGroup buttonGroup1;
    private javax.swing.JLabel jLabel1;
    private javax.swing.JLabel jLabel10;
    private javax.swing.JLabel jLabel11;
    private javax.swing.JLabel jLabel12;
    private javax.swing.JLabel jLabel13;
    private javax.swing.JLabel jLabel14;
    private javax.swing.JLabel jLabel2;
    private javax.swing.JLabel jLabel23;
    private javax.swing.JLabel jLabel3;
    private javax.swing.JLabel jLabel4;
    private javax.swing.JLabel jLabel5;
    private javax.swing.JLabel jLabel6;
    private javax.swing.JLabel jLabel7;
    private javax.swing.JLabel jLabel8;
    private javax.swing.JLabel jLabel9;
    private javax.swing.JMenu jMenu1;
    private javax.swing.JMenu jMenu2;
    private javax.swing.JMenu jMenu3;
    private javax.swing.JMenuBar jMenuBar1;
    private javax.swing.JMenuItem jMenuItem1;
    private javax.swing.JPanel jPanel1;
    private javax.swing.JPanel jPanel2;
    private javax.swing.JPanel jPanel3;
    private javax.swing.JPanel jPanel4;
    private javax.swing.JPanel jPanel5;
    private javax.swing.JPanel jPanel6;
    private javax.swing.JPanel jPanel7;
    private javax.swing.JPanel jPanel8;
    private javax.swing.JScrollPane jScrollPane1;
    private javax.swing.JScrollPane jScrollPane2;
    private javax.swing.JScrollPane jScrollPane3;
    private javax.swing.JScrollPane jScrollPane4;
    private javax.swing.JScrollPane jScrollPane5;
    private javax.swing.JScrollPane jScrollPane6;
    private javax.swing.JTabbedPane jTabbedPane1;
    private javax.swing.JButton jbtn_agregar;
    private javax.swing.JButton jbtn_agregarrequi;
    private javax.swing.JButton jbtn_calcular;
    private javax.swing.JButton jbtn_patbusqueda;
    private javax.swing.JEditorPane jepn_fotos;
    private javax.swing.JLabel jlbl_costo2;
    private javax.swing.JLabel jlbl_costo3;
    private javax.swing.JLabel jlbl_textobusca;
    private javax.swing.JMenuItem jmni_actualizar;
    private javax.swing.JMenuItem jmni_calcularusomat;
    private javax.swing.JMenuItem jmni_escape;
    private javax.swing.JMenuItem jmni_requisicionagrega;
    private javax.swing.JMenuItem jmni_salir;
    private javax.swing.JRadioButton jrbtn_patdescripcion;
    private javax.swing.JRadioButton jrbtn_patidinsumo;
    private javax.swing.JRadioButton jrbtn_patidinsumo1;
    private javax.swing.JTable jt_catalogo_insumospathisto;
    private javax.swing.JTable jt_catalogo_insumospatrones;
    private javax.swing.JTable jt_catalogo_laserproduccion;
    private javax.swing.JTable jt_catalogo_laserrequisicion;
    private javax.swing.JTable jt_catalogo_producionxdia;
    private javax.swing.JButton jtbn_agregarpatron;
    private javax.swing.JTextField jtf_altodepieza;
    private javax.swing.JTextField jtf_alturamaterial;
    private javax.swing.JTextField jtf_alturamt;
    private javax.swing.JTextField jtf_anchomaterial;
    private javax.swing.JTextField jtf_anchopieza;
    private javax.swing.JTextField jtf_busqueda;
    private javax.swing.JTextField jtf_canpzaingresa;
    private javax.swing.JTextField jtf_filasnecesarias;
    private javax.swing.JTextField jtf_importecosto;
    private javax.swing.JTextField jtf_insumosbusqueda;
    private javax.swing.JTextField jtf_minutos;
    private javax.swing.JTextField jtf_piezas;
    private javax.swing.JTextField jtf_piezasterminadas;
    private javax.swing.JTextField jtf_piezasxfila;
    private javax.swing.JTextField jtf_regfind;
    private javax.swing.JTextField jtf_usomatcms;
    private javax.swing.JTextField jtf_usomatmetros;
    // End of variables declaration//GEN-END:variables

}
